<!-- 主页 -->
<template>
  <div>这是首页{{ count }}</div>
  <div><button @click="handle">xxxxxx</button></div>
</template>

<script>
import { useStore } from "vuex";
import { useRouter } from "vue-router";
import { computed, defineComponent } from "vue";

export default defineComponent({
  setup() {
    const store = useStore();
    const userRouter = useRouter();
    let count = computed(() => store.state.count);
    const handle = () => {
      userRouter.push("/Order");
    };
    return {
      count,
      handle,
    };
  },
});
</script>
<style lang='css' scoped>
</style>
